import {inArrayStrict} from './inArrayStrict';

export const removeEmptyAttr=(data={},omit=['',null,undefined])=>{
    const rst={};
    let val;
    for(let key in data){
        val=data[key];
        if(inArrayStrict(val,omit)){
            continue;
        }
        rst[key]=val;
    }
    return rst;
};
export default removeEmptyAttr;